#!/usr/bin/env python
#coding=utf-8
"""
this is a class test 1, init three class
"""
class student:
	def __init__(self, name):
		self.name = name

	def action(self):
		print "learning python"

class teather:
	def __init__(self, name):
		self.name = name
		self.course = ''

	def action(self, course='python'):
		self.course = course
		print "tech python: %s" % self.course

class headmaster:
	def __init__(self, name):
		self.name = name

	def action(self):
		print "get money"

#实例化
alex = teather('alex')
alex.action()

mingmings = student('mingmings')
mingmings.action()

oldboy = headmaster('oldboy')
oldboy.action()